package com.example.concurrent;

import lombok.extern.slf4j.Slf4j;

@Slf4j(topic = "c.test2")
public class Test2 {

	public static void main(String[] args) {
		Runnable r = new Runnable() {
			
			@Override
			public void run() {
				log.debug("running");
			}
		};
		Thread t = new Thread(r, "t2");
		t.start();
		
		log.debug("running");
	}
	
	public static void main2(String[] args) {
		Runnable r = () -> log.debug("running");
		Thread t = new Thread(r, "t2");
		t.start();
		
		log.debug("running");
	}
}
